home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
usenet
/
sources
/
volume91
/
devices
/
yes_1_0
/
part01
/
README
< prev
Wrap
Text File
|
1991-05-08
|
2KB
|
53 lines
This little gem is a YES: handler. So what's that, you ask?
Let's say you're unlharcing something and you want it to always create
directories/tromp/etc. Then -- lharc <YES:y x archive will always say "y"
when it asks "Create this Directory?".
This handler is a triumph of modern compiler technology, trite but true.
Who could have even dreamed that a program written in "C" could be less
than 1400 bytes, after all?
Total syntax:
Just plain YES: returns "yes\n" for each call to Read().
YES:<text> returns the text whenever the program reads from YES:.
The following are special-cased:
// -- one slash character
\\ -- one backslash character
\n -- a linefeed
\c -- a carriage return
\<octal> -- an octal character.
YES:<text>/c turns off the automatic "\n" ordinarily added to the text.
To use: Plunk YesHandler into your L: directory. Then put this into your
Mountlist:
YES: Handler = L:YesHandler
StackSize = 2000
Priority = 0
GlobVec = -1
#
Next type "mount YES:" and presto, you're done.
Known bugs: None. However, note that YES:/c will NOT generate
the text "yes" without the carriage return... there has to be text between
the colon and the "/c".
Permission granted for all uses, but please send bug reports to me:
Eric Lee Green
P.O. Box 92191
Lafayette, LA 70509
(318) 984-1820
BIX: egreen
Internet: elg@elgamy.RAIDERNET.COM (Eric's Amiga @ Home)
UUCP: uunet!mjbtn!raider!elgamy!elg
NOTE: I am currently looking for a job as of 4/91. If you know of a company
that's hiring Unix or Amiga software people, please drop me a line.